<nz-spin *ngIf="isLoading" class="modal-spin"></nz-spin>
<div *ngIf="!isLoading && entity.type == 1">
  <desc-list [col]="2">
    <desc-list-item term="客户微信名">{{ entity.cusName }}</desc-list-item>
    <desc-list-item term="客户电话">{{entity.cusPhone}}</desc-list-item>
    <desc-list-item term="状态">{{entity.status|dicsNamePipe:statusOption}}</desc-list-item>
    <desc-list-item term="兑换产品">{{entity.productTitle}}</desc-list-item>
    <desc-list-item term="兑换数量">{{entity.quantity}}</desc-list-item>
    <desc-list-item term="需要积分/产品">{{entity.needCredit}}({{entity.creditType == 1?"普通积分":"TAK积分"}})</desc-list-item>
    <desc-list-item term="使用总积分">{{entity.needTotalCredit}}({{entity.creditType == 1?"普通积分":"TAK积分"}})<span style="color: green" *ngIf="entity.status == 2">(已退回)</span></desc-list-item>
    <desc-list-item term="申请时间">{{entity.saveDate}}</desc-list-item>
    <desc-list-item term="申请备注"><span [title]="entity.remark">{{entity.remark|stringEllipsisCutPipe:20}}</span></desc-list-item>
    <desc-list-item term="驳回原因"><span [title]="entity.auditingReason">{{entity.auditingReason|stringEllipsisCutPipe:20}}</span></desc-list-item>
    <desc-list-item term="收件人姓名">{{entity.postalName}}</desc-list-item>
    <desc-list-item term="收件人手机">{{entity.postalPhone}}</desc-list-item>
  </desc-list>
  <p style="margin-top: 16px;">寄件地址：{{entity.province}}{{entity.city}}{{entity.county}}{{entity.address}}</p>
</div>
<div *ngIf="!isLoading && entity.type == 2">
  <desc-list [col]="2">
    <desc-list-item term="客户微信名">{{ entity.cusName }}</desc-list-item>
    <desc-list-item term="客户电话">{{entity.cusPhone}}</desc-list-item>
    <desc-list-item term="状态">{{entity.status|dicsNamePipe:cashStatusOptions}}</desc-list-item>
    <desc-list-item term="兑换产品">{{entity.productTitle}}</desc-list-item>
    <desc-list-item term="兑换数量">{{entity.quantity}}</desc-list-item>
    <desc-list-item term="需要积分/产品">{{entity.needCredit}}({{entity.creditType == 1?"普通积分":"TAK积分"}})</desc-list-item>
    <desc-list-item term="使用总积分">{{entity.needTotalCredit}}({{entity.creditType == 1?"普通积分":"TAK积分"}})<span style="color: green" *ngIf="entity.status == 2">(已退回)</span></desc-list-item>
    <desc-list-item term="申请时间">{{entity.saveDate}}</desc-list-item>
    <desc-list-item term="申请备注"><span [title]="entity.remark">{{entity.remark|stringEllipsisCutPipe:20}}</span></desc-list-item>
    <desc-list-item term="失败原因"><span [title]="entity.errCodeDes">{{entity.errCodeDes|stringEllipsisCutPipe:20}}</span></desc-list-item>
  </desc-list>
</div>
<div class="modal-footer">
  <button nz-button type="button" (click)="close()">关闭</button>
</div>
